<?php /* Smarty version 2.6.26, created on 2016-05-11 20:09:33
         compiled from index.php */ ?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>Document</title>
</head>
<body>
	<div id="" style="width: 400px;margin:30px auto">
		<div id="">
			<a href="./index.php?a=add">添加班级</a>
		</div>
		<table border="1">
			<tr>
				<td>班级cid</td>
				<td>班级名称</td>
				<td>操作</td>
			</tr>
			<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['v']):
?>
			<tr>
				<td><?php echo $this->_tpl_vars['v']['cid']; ?>
</td>
				<td><?php echo $this->_tpl_vars['v']['cname']; ?>
</td>
				<td>
					<a href="index.php?m=Home&c=Study&a=index&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
">管理班级学生</a>
					<a href="index.php?a=edit&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
">编辑班级</a>
					<a href="index.php?a=del&cid=<?php echo $this->_tpl_vars['v']['cid']; ?>
">删除班级</a>
				</td>
			</tr>
			<?php endforeach; endif; unset($_from); ?>
			
		</table>	
		<!--退出 中的地址是一种方法-->
			<a href="./index.php?c=Login&a=login">退出登录</a>
			<a href="index.php?m=Home&c=Login&a=out">
		<button type="button" class="btn btn-info">退出</button>
	</a>
	</div>
</body>
</html>